package main

import (
	"os"
	"os/signal"
	"syscall"

	_ "com.zkh/agent/coap/conf"
	"com.zkh/agent/coap/server"
)

func main() {

	go server.CoapTcpServer()
	go server.HttpServer()

	terminate := make(chan os.Signal, 1)
	signal.Notify(terminate, syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT, syscall.SIGUSR1, syscall.SIGUSR2)

	select {
	case <-terminate:
		return
	}

}
